//
//  ViewController.m
//  ApplicationDemo
//
//  Created by 鹏鹏 on 2022/5/31.
//

#import "ViewController.h"

// 静置一段时间之后, 自动黑屏

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onAbcd:) name:@"abcdefghijklmn" object:nil];
}

- (void)onAbcd: (NSNotification *)notification {
    self.view.backgroundColor = UIColor.blackColor;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    NSLog(@"aaa: %s", __func__);

    self.view.backgroundColor = UIColor.whiteColor;
}


@end
